import 'dart:collection';

class SearchConfiguration{
  Map<String,String> selectedLeagues = HashMap(equals: (key1,key2){
    return key1.compareTo(key2) == 0;
  } );
  Map<String,String> selectedNations = HashMap(equals: (key1,key2){
    return key1.compareTo(key2) == 0;
  } );
  List<String> selectedPositions = [];

  List<String> positions = [
    Positions.LF,
    Positions.RF,
    Positions.CF,
    Positions.SF,
    Positions.LM,
    Positions.LW,

    Positions.RM,
    Positions.RW,
    Positions.CAM,
    Positions.CDM,
    Positions.CM,
    Positions.LWB,

    Positions.RWB,
    Positions.LB,
    Positions.RB,
    Positions.CB,
    Positions.GK,
  ];

  Map<String,String> leagues = HashMap()
    ..putIfAbsent("La Liga", ()=>LeagueCodes.LALIAG)
    ..putIfAbsent("Premier League", ()=>LeagueCodes.PRMIER_LEAGUE)
    ..putIfAbsent('Ligue 1', ()=>LeagueCodes.LIGUE1)
    ..putIfAbsent('Icons', ()=>LeagueCodes.ICONS);

  Map<String,String> nations = HashMap()
    ..putIfAbsent('Argentina', ()=>NationCodes.ARGETINA)
    ..putIfAbsent('Brazil', ()=>NationCodes.BRAZIL)
    ..putIfAbsent('Germany', ()=>NationCodes.GERMANY)
    ..putIfAbsent("England", ()=>NationCodes.ENGLAND)
    ..putIfAbsent("France", ()=>NationCodes.FRANCE)
    ..putIfAbsent("ITALY", ()=>NationCodes.ITALY);
}

class Positions{
  static const String LF = 'LF';
  static const String RF = 'RF';
  static const String CF = 'CF';
  static const String SF = 'SF';
  static const String LM = 'LM';
  static const String LW = 'LW';
  static const String RM = 'RM';
  static const String RW = 'RW';
  static const String CAM = 'CAM';
  static const String CDM = 'CDM';
  static const String CM = 'CM';
  static const String LWB = 'LWB';
  static const String RWB = 'RWB';
  static const String LB = 'LB';
  static const String RB = 'RB';
  static const String CB = 'CB';
  static const String GK = 'GK';
}

class LeagueCodes{
  //club
  static const String LALIAG = '240,241,243,448,449,450,452,457,461,462,463';
  static const String PRMIER_LEAGUE='1,5,7,9,10,11,13,17,18,19,95';
  static const String LIGUE1 = '59,62,65,66';
  static const String ICONS = '112658';
}

class NationCodes{
  static const String BRAZIL = "54";
  static const String ENGLAND = "14";
  static const String GERMANY = "21";
  static const String ITALY = "27";
  static const String SPAIN = "25";
  static const String BELGIUM = "7";
  static const String FRANCE = "18";
  static const String ARGETINA = "52";
}

